package demo1;

public class Test {
    String s1="hello world";
    int age=18;
    static int a=0;

    public static void  testException() {
        int b=10;
        if (a == 0) {
            throw new ArithmeticException();
        }
    }

    public static void main(String[] args) {
        testException();
    }
    public static void main3(String[] args) {
        int a=100/0;
    }

    public static void main2(String[] args) {
        Test test=new Test();
//        test.clone();
    }

    public static void main1(String[] args) {
        Integer a=Integer.valueOf(10);
        int aa=a.intValue();
        System.out.println(aa);
        aa=a;
        System.out.println(aa);
    }
}
